package o;

import android.content.Context;
import android.content.res.Resources;
import com.huawei.appmarket.service.store.awk.bean.BannerV9CardBean;
import com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.b;
import com.huawei.appmarket.service.store.awk.node.VerticalMultiTabsEntranceNode.c;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import o.ejb.a;
import o.ewm.d;
import o.ewm.h;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {1, 0, 3}, d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\u0018\u00002\u00020\u0001B3\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t\u0012\u0006\u0010\u000b\u001a\u00020\f¢\u0006\u0002\u0010\rJ\b\u0010\u0012\u001a\u00020\u000fH\u0014R\u000e\u0010\u0002\u001a\u00020\u0003X\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0005X\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u000e\u001a\u00020\u000f8F¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0013"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/widget/topbanner/VerticalMultiTabsBannerPagerAdapter;", "Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter;", "cardStyle", "Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardStyle;", "cardType", "Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardType;", "context", "Landroid/content/Context;", "bannerDataList", "", "Lcom/huawei/appmarket/service/store/awk/bean/BannerV9CardBean;", "touchCallback", "Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter$TopBannerTouchCallback;", "(Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardStyle;Lcom/huawei/appmarket/service/store/awk/node/VerticalMultiTabsEntranceNode$CardType;Landroid/content/Context;Ljava/util/List;Lcom/huawei/appmarket/service/store/awk/widget/topbanner/BannerPagerAdapter$TopBannerTouchCallback;)V", "itemHorizontalMargin", "", "getItemHorizontalMargin", "()I", "itemViewLayoutId", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public final class ejd extends ejb {
    private final c ˋ;
    private final b ॱ;

    public ejd(@NotNull c cVar, @NotNull b bVar, @NotNull Context context, @NotNull List<? extends BannerV9CardBean> list, @NotNull a aVar) {
        fsd.ˊ((Object) cVar, "cardStyle");
        fsd.ˊ((Object) bVar, "cardType");
        fsd.ˊ((Object) context, "context");
        fsd.ˊ((Object) list, "bannerDataList");
        fsd.ˊ((Object) aVar, "touchCallback");
        super(context, list, aVar);
        this.ˋ = cVar;
        this.ॱ = bVar;
    }

    protected int ˊ() {
        switch (ejg.ˋ[this.ˋ.ordinal()]) {
            case 1:
                switch (ejg.ˊ[this.ॱ.ordinal()]) {
                    case 1:
                        return h.ॱᵎ;
                    case 2:
                        return h.ᐝꞌ;
                    default:
                        throw new NoWhenBranchMatchedException();
                }
            case 2:
                return h.ॱᵔ;
            default:
                throw new NoWhenBranchMatchedException();
        }
    }

    public final int ॱ() {
        int i;
        Context context = this.ˏ;
        fsd.ॱ(context, "mContext");
        Resources resources = context.getResources();
        switch (ejg.ˏ[this.ˋ.ordinal()]) {
            case 1:
                i = d.ˋ;
                break;
            case 2:
                i = d.ॱ;
                break;
            default:
                throw new NoWhenBranchMatchedException();
        }
        return (int) resources.getDimension(i);
    }
}
